<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/template/basicTemplate.xhtml">

	<ui:define name="content">
		<head>
<title>Authentification Page</title>
		</head>
		<br />
		<br />
		<br />
		<h:form id="example">
			<h2>
					<h:outputText value="#{msg.wel}" />
				</h2>
				<h:panelGrid columns="2">
					Language : 
					<h:selectOneMenu value="#{loginBean.localeCode}" onchange="submit()"
						valueChangeListener="#{loginBean.countryLocaleCodeChanged}">
						<f:selectItems value="#{loginBean.countriesInMap}" />
					</h:selectOneMenu>
				</h:panelGrid>
		</h:form>
		<h:form id="form1">
			<div align="center">
				<h:panelGrid columns="3" styleClass="inner-table login">

					<h:outputText value="Username:" />
					<h:inputText styleClass="inputText" id="username"
						value="#{loginBean.uname}"
						requiredMessage="Please, type a username!" required="true" />
					<h:message for="username" styleClass="errorMessage" />
					<h:outputText value="Password:" />
					<h:inputSecret styleClass="inputText" id="password"
						value="#{loginBean.upass}"
						requiredMessage="Please, type a password!" required="true" />
					<h:message for="password" styleClass="errorMessage" />
				</h:panelGrid>
				<br></br>
				<h:commandButton action="#{loginBean.login}" value="Login"
					styleClass="button" />
				<br></br>
				<!-- 
			<h:messages styleClass ="errorMessage"></h:messages>
			 -->
			</div>

		</h:form>
	</ui:define>

</ui:composition>

</html>

